<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>修改个人信息</title>
<meta name="viewport" content="width-device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.css" />
<link rel="stylesheet" href="css/person_update.css" />
<link rel="shortcut icon" href="ico/logo.ico"/>
</head>

<body>
<!--定义头部区域，放导航和logo -->
<header>
<div class="logo"><img src="ico/logo.png" alt=""/>伴美科技</div>
<nav>
<a href="main.php#home">首页</a>
<a href="main.php#about-us">关于我们</a>
<a href="main.php#showcases">自营产品</a>
<a href="main.php#service">招聘信息</a>
<a href="main.php#team-intro">商务合作</a>
<a href="main.php#company-activities">公司动态</a>
<a>
 <?php
	require_once("conn/conn_db.php");
	$sql = "select * from  user_info where u_id ='".$_GET["u_id"]."'";
	$result = $conn->query($sql);//执行SQL语句
    //遍历查询结果的每一行
    while($row = $result->fetch_array()){
	     ?>
	<img src='../<?php echo $row['u_header'];?>' style="border-radius: 50%; width: 36px; height: 36px; position: absolute; top: 20px; right: 38px;" alt="User">
	<?php 
         }
         ?>	
	</a>
</nav>
	
<!--定义折叠按钮 屏幕缩小到 -->
<div class="burger">
    <div class="burger-line1"></div>
	<div class="burger-line2"></div>
	<div class="burger-line3"></div>
</div>	
</header>
<?php
require_once("conn/conn_db.php");
if($_GET["u_id"] !="" )
{
  $uid = $_GET["u_id"];
   $str ="select * from user_info where u_id=".$uid ;
   $result= $conn->query($str);
   if ($result->num_rows) {
        $row = $result->fetch_assoc();
?>

<form action="action/person_update_do.php" method="post"  enctype="multipart/form-data">
	<?php  include 'action/session_check.php'; //登录判断  ?>
	<div class="container_box">
  <div class="container">
	<div class="container_form">
	<h1>编辑简历</h1>
	<p>补全信息更容易获得面试官的好感噢 : )</p>
	
	<h2><div class="line"></div>上传简历</h2>
	<div class="underline"></div>
	 <input type="hidden" name="txt_file2" value="<?php echo $row['u_file']; ?>"/> <!-- 旧文件 -->
	 <input type="file" name="txt_file" /><!-- 新文件 -->
	
	<h2><div class="line"></div>基本信息</h2>
	<div class="container_child">
	
		<span class="update_part">用户头像<font color="#fb7299">*</font></span>
		<img class="update_img" src='../<?php echo $row['u_header'];?>' alt="User" width="115px" height="115px">
		<input type="hidden" name="txt_image2" value="<?php echo $row['u_header']; ?>"/> <!-- 旧图片 -->
		<input class="update_file" type="file" name="txt_image" /><!-- 新图片 -->
		
		<br>
		<br>
		<span class="update_part">姓名<font color="#fb7299">*</font></span>
		<input type="text" name="txt_name" class="update_text" value="<?php echo $row["u_name"];?>"  />
		
		<br>
		<br>
		<span class="update_part">性别<font color="#fb7299">*</font></span>
		<input type="text" name="txt_sex" class="update_text" value="<?php echo $row["u_sex"];?>"  />
		
		<br>
		<br>
		<span class="update_part">出生日期<font color="#fb7299">*</font></span>
		<input type="text" name="txt_birth" class="update_text" value="<?php echo $row["u_birth"];?>" />
		
		<br>
		<br>
		<span class="update_part">所在城市<font color="#fb7299">*</font></span>
		<input type="text" name="txt_city" class="update_text" value="<?php echo $row["u_city"];?>" />
		
		<br>
		<br>
		<span>学历<font color="#fb7299">*</font></span>
		<input type="text" name="txt_education" class="update_text" value="<?php echo $row["u_education"];?>" />
		
		<br>
		<br>
	    <span>手机号码<font color="#fb7299">*</font></span>
		<input type="text" name="txt_tel" class="update_text" value="<?php echo $row["u_tel"];?>" />
		
		<br>
		<br>
	    <span>邮箱地址<font color="#fb7299">*</font></span>
		<input type="text" name="txt_email" class="update_text" value="<?php echo $row["u_email"];?>" />
	
	   <br>
	   <br>
	   <input type="hidden" name="txt_id" value="<?php echo $row['u_id']; ?>"/>
	   <input style="height: 30px;
		width: 60px; border-radius: 5px; background: #f79f1f; color: white; border: 0px;" type="submit" value="保存" />  &nbsp;&nbsp;&nbsp;&nbsp;
		
       <a href="person_center.php"><input type="button" style="height: 30px;
		width: 60px; border-radius: 5px; background: #f79f1f; color: white; border: 0px;" value="取消" /></a>
	</div>
	  </div>
        </div>
	      </div>
	</div>
 </form>
<!-- 我的简历部分结束 -->

<!-- 底部模块开始 -->	
	<footer>
    <div class="footer-menus">
	   <div class="contact-us">
		    <p class="menu-title">联系我们</p>
		    <p>地址：中国重庆市XX路XX商务中心XX楼</p>
		   　<p>电话：+86XXX XXXX XXXX</p>
		   　<p>传真：+86XXX　XXXX XXXX</p>
		  　 <p>电子邮箱：admin@163.com</p>
	   </div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">服务概况</p>
		  <ul class="menu-items">
		     <li><a href="#">跨境电商</a></li>
			 <li><a href="#">供应商</a></li>
			 <li><a href="#">移动应用</a></li>
			 <li><a href="#">网页设计</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">跨境产品</p>
		  <ul class="menu-items">
		     <li><a href="#">美妆护肤</a></li>
			 <li><a href="#">家用电器</a></li>
			 <li><a href="#">健康零食</a></li>
			 <li><a href="#">生活用品</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">公司动态</p>
		  <ul class="menu-items">
		     <li><a href="#">信息公开</a></li>
			 <li><a href="#">最近新闻</a></li>
			 <li><a href="#">最新消息</a></li>
			 
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">帮助与支持</p>
		  <ul class="menu-items">
		     <li><a href="#">帮助中心</a></li>
			 <li><a href="#">联系客服</a></li>
			 <li><a href="#">文档资源</a></li>
			
		  </ul>
		</div>
		<p class="icp-info">备案号信息</p>
		<p class="rights">
		      &copy;2022 伴美科技 - 有限责任公司官网 版权所有
		</p>
		

	</div>	
</footer>
<!-- 底部模块结束 -->	

<?php 
}
}
 else 
 {
   echo "<script>alert('请选择要编辑的用户信息！');self.location='person_center.php'</script>";     
 }
?>
	
</body>
</html>